package com.weyoung.common.enums;


import com.weyoung.common.consatant.errorcode.IErrorCode;

public enum UserErrorCodeEnum implements IErrorCode {
    USER_TOKEN_FAIL("A000200","用户Token验证失败"),
    USER_NULL("B000200","用户记录不存在"),
    USER_NAME_EXIST("B000201","用户名已存在"),
    USER_PASSWORD_ERROR("B000202","用户名或密码错误"),
    USER_NOT_EXIST("B000203","用户记录已存在"),
    USER_SAVE_ERROR("B000204","用户新增记录失败"),
    USER_DETAIL_MESSAGE_ERROR("B000205","用户详情信息查询失败"),
    USER_DETAIL_NULL("B000208","用户还未设置详细信息"),
    USER_INVITE_CODE_ERROR("B000206","用户邀请码过期或不存在"),
    USER_GET_INVITE_CODE_ERROR("B000207","用户获取邀请码失败");

    private final String code;

    private final String message;

    UserErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}

